#check-keepalived.sh
source /opt/k8s/bin/environment.sh
for i in "${!NODE_IPS[@]}"  
  do
    node_ip=${NODE_IPS[$i]}
    node_port=${NODE_PORTS[$i]} 
    echo ">>> ${node_ip}:${node_port} "
    ssh -p ${node_port} root@${node_ip} "systemctl status keepalived|grep Active"
    ssh -p ${node_port} ${node_ip} "/usr/sbin/ip addr show ${VIP_IF}"
    ssh -p ${node_port} ${node_ip} "ping -c 1 ${MASTER_VIP}"
  done